﻿#ifndef CHECKABLELISTWIDGET_H
#define CHECKABLELISTWIDGET_H

#include "components/FWidgets/FListWidget/FListWidget.h"
#include <QCheckBox>

class CheckableListWidget : public FListWidget
{
    Q_OBJECT
public:
    explicit CheckableListWidget(QWidget *parent = nullptr);

    void addItem(const QString& text, bool checked=false);
    bool isItemChecked(int row) const;
    bool isAllChecked() const;
    void setAllChecked(bool all=true);

signals:
};

#endif // CHECKABLELISTWIDGET_H
